#ifndef VIEWERWIDGET_H
#define VIEWERWIDGET_H

#include <QWidget>
#include <QTimer>

#include <osgViewer/Viewer>

class ViewerWidget : public QWidget,osgViewer::Viewer
{
	Q_OBJECT

public:
	ViewerWidget(QWidget *parent);
	~ViewerWidget();

	virtual void paintEvent(QPaintEvent *);
private:
	void initCameraConfig();
	QTimer timer;
	osg::ref_ptr<osg::Group> root;
};

#endif // VIEWERWIDGET_H
